export { };
  ////9.代理跨域：正向代理和反向代理
let http = require('http');
let httpProxy = require('http-proxy');
const proxy = httpProxy.createProxyServer();
const server = http.createServer((req: any, res: any) => {
  proxy.web(req, res, {
    target: 'http://baidu.com'
  })
});
server.listen(9999, () => {
  console.log('服务器取得成功9999')
})